
@import "../_mixins.less";

@image-bg: #2266a5;
@figcaption-bg: #135796;
@figcaption-padding: 30px;
@text-color: #ffffff;
@border-color: #ffffff;
@border-margin: 5px;
@border-width: 4px;
@transition-duration: 0.35s;
@shift-distance: 10px;


[class^='imghvr-'],[class*=' imghvr-']{
	position: relative;
	display: inline-block;
	margin: 0px;
	max-width: 100%;
	background-color: @image-bg;
	color: #fff;
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;
	.translateZ();
	> img {
		vertical-align: top;
		max-width: 100%;
		cursor: pointer;
	}
    figcaption {
    	background-color: @figcaption-bg;
    	position: absolute;
    	padding: 30px;
    	.fill;
    	color: @text-color;
    	h1, h2, h3, h4, h5, h6 {
    		color: @text-color;
    	}
    }
    a {
    	.fill;
    	z-index: 1;
    }
}

[class^='imghvr-'], [class*=' imghvr-'], [class^='imghvr-']:before, [class^='imghvr-']:after, [class*=' imghvr-']:before, [class*=' imghvr-']:after,
[class^='imghvr-'] *, [class*=' imghvr-'] *, [class^='imghvr-'] *:before, [class^='imghvr-'] *:after, [class*=' imghvr-'] *:before, [class*=' imghvr-'] *:after {
	//.box-sizing(border-box);
	.transition(all @transition-duration ease);
}

